package com.eol.entity.po.pay;

import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.ApiModel;

import javax.persistence.Column;
import javax.persistence.Id;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;


/**
 * 支付日志表
 *
 * @author liulinhui
 * @email 1249055292@qq.com
 * @date 2020-05-25 14:26:44
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel("支付日志表")
public class ZPaymentTransactionLog implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "订单ID")
    @Id
    private String id;

    @ApiModelProperty(value = "渠道方交易ID")
    private String trsId;

    @ApiModelProperty(value = "交易时间")
    private Date payTime;

    @ApiModelProperty(value = "渠道方回调时间")
    private Date notifyTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "渠道方回调参数")
    @Column(name = "notify_params")
    private JSONObject notifyParams;

    @ApiModelProperty(value = "wx:微信  ali:支付宝")
    private String channelType;

    @ApiModelProperty(value = "支付类型 WX_JSAPI、WX_MWEB、ALIPAY_WAP")
    private String channelName;

    @ApiModelProperty(value = "订单类型  1:课程  2:会员")
    private Integer type;

}
